home *** CD-ROM | disk | FTP | other *** search
/ PC Home 109 / PC Home 109.iso / data1.cab / Program_Files / be002.dxr / 00032.ls < prev    next >
Encoding:
Text File  |  2001-03-02  |  1.6 KB  |  67 lines

  1. on exitFrame
  2.   handcursor(6)
  3.   handcursor(7)
  4.   handcursor(8)
  5.   exitbutton()
  6.   dog()
  7.   finish1()
  8.   finish2()
  9.   puppetSprite(3, 1)
  10.   puppetSprite(4, 1)
  11.   puppetSprite(5, 1)
  12.   go(the frame)
  13.   if the locV of sprite 5 >= 300 then
  14.     set the visible of sprite 5 to 0
  15.   else
  16.     set the visible of sprite 5 to 1
  17.   end if
  18. end
  19.  
  20. on finish2
  21.   if (the visible of sprite 5 = 0) and (the locH of sprite 3 = 318) then
  22.     puppetSound(0)
  23.     go(the frame + 1)
  24.   end if
  25. end
  26.  
  27. on finish1
  28.   if the visible of sprite 5 = 0 then
  29.     if the locH of sprite 3 > 318 then
  30.       repeat while the locH of sprite 3 > 318
  31.         set the locH of sprite 3 to the locH of sprite 3 - 5
  32.         set the locH of sprite 4 to the locH of sprite 4 - 5
  33.         set the locH of sprite 5 to the locH of sprite 5 - 5
  34.         updateStage()
  35.       end repeat
  36.     else
  37.       if the locH of sprite 3 < 318 then
  38.         repeat while the locH of sprite 3 < 318
  39.           set the locH of sprite 3 to the locH of sprite 3 + 5
  40.           set the locH of sprite 4 to the locH of sprite 4 + 5
  41.           set the locH of sprite 5 to the locH of sprite 5 + 5
  42.           updateStage()
  43.         end repeat
  44.       end if
  45.     end if
  46.   end if
  47. end
  48.  
  49. on dog
  50.   global dog
  51.   if dog = 0 then
  52.     if the locH of sprite 5 <= 111 then
  53.       repeat while the locV of sprite 5 < 300
  54.         set the locV of sprite 5 to the locV of sprite 5 + 5
  55.         updateStage()
  56.       end repeat
  57.     end if
  58.   else
  59.     if the locH of sprite 5 >= 522 then
  60.       repeat while the locV of sprite 5 < 300
  61.         set the locV of sprite 5 to the locV of sprite 5 + 5
  62.         updateStage()
  63.       end repeat
  64.     end if
  65.   end if
  66. end
  67.